﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DXWebApplication.Areas.Auth.Models
{
    public class LoginModel
    {
        [Display(ResourceType = typeof(NmResources.AdminResource),Name = "lbUserName")]
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource),ErrorMessageResourceName = "UserNameRequired")]
        public string UserName { get; set; }

        [Display(ResourceType = typeof(NmResources.AdminResource), Name = "lbPassword")]
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "PasswordRequired")]
        [MinLength(6, ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "PasswordLength")]
        public string Password { get; set; }
        [Display(ResourceType = typeof(NmResources.AdminResource), Name = "lbRemember")]
        public bool Remember { get; set; }
    }

}